package com.dnjn.happiness.survey.controller;


import com.dnjn.happiness.survey.controller.common.CommonCheckController;
import com.dnjn.happiness.survey.domain.CheckItem;
import com.dnjn.happiness.common.log.annotation.Log;
import com.dnjn.happiness.common.core.web.domain.AjaxResult;
import com.dnjn.happiness.common.log.enums.BusinessType;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 考核记录Controller
 *
 * @author happiness
 * @date 2024-04-01
 */
@Tag(name = "check  check 考核记录", description = "考核记录")
@RestController
@RequestMapping("/check/check")
public class CheckController extends CommonCheckController {

    @Log(title = "考核记录", businessType = BusinessType.SELECT)
//    @RequiresPermissions("@ss.hasAnyPermi('check :check:query,ignore:check:query')")
    @GetMapping(value = "/getCheckItem")
    @Operation(summary = "getCheckItem 小程序-考核")
    public AjaxResult getCheckItem(@RequestParam(required = false) String checkStatus ) {

        List<CheckItem> checkItems = checkService.getCheckItem(checkStatus);
        return success(checkItems);
    }




}
